package com.cheng.service.impl;

import com.cheng.common.exception.CommonException;
import com.cheng.data.entity.LoginLogInfoEntity;
import com.cheng.data.mapper.LoginLogInfoMapper;
import com.cheng.service.LoginLogInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: ChengJW
 * @date: 2021/12/26 10:52
 * @version: 1.0
 * @description: 登录日志处理
 */
@Service
public class LoginLogInfoServiceImpl implements LoginLogInfoService {

    private final static Logger log = LoggerFactory.getLogger(LoginLogInfoServiceImpl.class);

    @Autowired
    private LoginLogInfoMapper loginLogInfoMapper;

    /**
    * @author: ChengJW
    * @params: [loginLogInfoEntity]
    * @return: void
    * @date: 2021/12/26
    * @description: 插入登录日志
    */
    @Override
    public void insertLoginLogInfo(LoginLogInfoEntity loginLogInfoEntity) throws CommonException {
        loginLogInfoMapper.insert(loginLogInfoEntity);
    }
}
